package com.qfedu.shopcatdel.controller;

import com.qfedu.shopcatdel.dao.ShopcatMapper;
import com.qfedu.shopcatdel.service.ShopcatDelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
public class ShopcatController {

    @Autowired
    private ShopcatDelService shopcatDelService;

    @DeleteMapping("/shopcat/del")
    public int delete(String cids){
        return shopcatDelService.deleteShopcat(cids);
    }


}
